]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellDBus: Lock down Eval() to be a development tool only
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 27 Oct 2011 21:41:06 +0000 (17:41 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 5 Nov 2011 21:00:53 +0000 (17:00 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=662891

js/ui/shellDBus.js

index 1fcfb0cf0191d1c98829dcc8caca38cb6002218a..4f81c53a9ae9b630a399bc94bf71e0d996fff299 100644 (file)
@@ -93,6 +93,9 @@ GnomeShell.prototype = {
      *
      */
     Eval: function(code) {
+        if (!global.settings.get_boolean('development-tools'))
+            return [false, null];
+
         let returnValue;
         let success;
         try {